package com.example.aidocengine.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("device_state_transition")
public class DeviceStateTransition {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String deviceCategory;
    
    private String actionKeyword;
    
    private String initialState;
    
    private String targetState;
    
    private String reverseAction;
    
    private Integer status;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}